import fetch from '@/utils/request'

export function page(query) {
  return fetch({
    url: '/api/adminBiz/marCoupons/page',
    method: 'post',
    params: query
  })
}

export function addObj(obj) {
  return fetch({
    url: '/api/adminBiz/marCoupons/add',
    method: 'post',
    data: obj
  })
}

export function getObj(obj) {
  return fetch({
    url: '/api/adminBiz/marCoupons/info',
    method: 'post',
    data: obj
  })
}

export function putObj(obj) {
  return fetch({
    url: '/api/adminBiz/marCoupons/update',
    method: 'post',
    data: obj
  })
}

export function closeObj(obj) {
  return fetch({
    url: '/api/adminBiz/marCoupons/close',
    method: 'post',
    data: obj
  })
}

export function getInc() {
  return fetch({
    url: '/api/adminBiz/marIncident/all',
    method: 'get'
  })
}

export function getScene() {
  return fetch({
    url: '/api/adminBiz/marScenes/all',
    method: 'get'
  })
}
